import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/zhuyem',
  },
  {
    path: '/header',
    name: '头部',
    component: () => import( '../views/H-header.vue'),
    meta:{
      title:'标题头部'
    }
  },
  {
    path: '/footer',
    name: '尾部',
    component: () => import( '../views/H-footer.vue'),
    meta:{
      title:'标题尾部'
    }
  },
  {
    path: '/zhuyem',
    name: '阿姨帮PC首页',
    component: () => import('../views/zhuyem.vue'),
  },
  {
    path: '/familyservice',
    name: '家庭服务',
    component: () => import('../views/familyservice.vue'),
  },
  {
    path: '/enterprisservice',
    name: '企业服务',
    component: () => import('../views/enterprisservice.vue'),
  },
  {
    path: '/cityCooperation',
    name: '城市合伙',
    component: () => import('../views/cityCooperation.vue'),
  },
  {
    path: '/aboutOur',
    name: '阿姨帮PC关于我们',
    component: () => import('../views/aboutOur.vue'),
  },
  {
    path: '/trainCenter',
    name: '平台培训中心',
    component: () => import('../views/trainCenter.vue'),
  },

  {
    path: '/index',
    name: '首页',
    component: () => import('../views/zhuyem.vue'),
    meta:{
      title:'阿姨帮PC端'
    }
  },



]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
